Part Number Hot Search : 
NJM2894 SPB80N03 BZT52C22 1364SKBC DALC12 TA0872A ACM0801B P6KE18A
Product Description
Full Text Search
 

To Download MC146805E2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Freescale Semiconductor, Inc.
*'
.,"
o
Advance Information
8-BIT MICROPROCESSOR
The MCl@05E2 Microprocessor Unit Family of Microcomputers. This 8-bit microprocessor contains a CPU, on-chip low-power, low-cost processor designed
MC146805E2
[
CMOS
I
`.!*$
(HIGH PERFORMANCE
SILICONe$~
UNIT
(MPU) belongs to the M6805 fully static and expandable RAM, 1/0, and TIMER. It is a for low-end to mid-range ap-
Freescale Semiconductor, Inc...
plications in the consumer, automotive, industrial, and communications markets where very low power consumption constitutes an important factor. The following are the major features of the MC146805E2 MPU:
HARDWARE FEATURES
q Typical Full Speed Operating Power of 35 mW @ 5 V q Typical WAIT Mode Power of 5 mW q Typical STOP Mode Power of 25 pW
.112
Bytes of On-Chip RAM 1/0 Lines
q 16 Bidirectional
<'~ ,...~ ~:1, ~.,l ~!,$&
q
.,i.~:: O Internal 8-Bit Timer with Software Programmable 7-Bit Pres&i~eX:t .,,1 ,V *\, `$~,, ~~!~:~ .. , .3.,$$ q Full External and Timer Interrupts ,...'~$, ,, >tt?l\,..,v,,l .~..l~l , , ~.. ,. q Multiplexed Address/Data Bus ..~., $:,$?, q Master Reset and Power-On Reset ,.
q Capable of Addressing Up to 8K Bytes of E~:$~RQlMemory q Single 3- to 6-Volt Supply q On-Chip Oscillator q W-Pin Dual-In-Line
[M"
Package
q Chip Carrier Also Available
~h>-,+ " .,.\*. ..:,~ .` ,,!, :?.\\w
it:t~. "*:,, `~ .i$$,-if.s<::,~.+, ,J:;, ",,, . ~ ,,, : , ~:,`*I, "i${J! **;J?," .....,, ..,.$}.. t...,.,...~+.l ..v.>M4\. /~\:/l\..,\ , :.+.
\ o
PIN ASSIGNMENTS
Z SUFFIX
CHIP CARRIER 761 CASE
SOFTWARE FEATURES ,..~-'~qa;$ ..,.~%.. $ 0 Similar to the MC68~ ,~d>. a+$,y$.i,.
q Efficient Use of Prog%,#pace q Versatile lnterrup$~a~ting q True Bit Ma~~@ulatrbti
40 ]VDD
m[
DS[ R~[
2
39 ]Oscl
38 ]OSC2 37 ]TIMER 36 ]P80 35 ]P81 34 ]PB2 33 ]PB3 32 ]PB4 31 ]PB5
30 ]PB6
LI [ 3 4 5
,.~ .;:*
~.**,{ `
q Addressin@~~~~@ with Indexed Addressing for Tables
i\,!~'
AS [ 6 PA7 [ 7 PA6 [ 8 PA5 [ 9 PA4[ 10 PA3[ 11 PA2~ PA1 [
12 13 14
q Efficie~~%u&tion q Memq,$~apped q +.,.' T$&$Fo&er . ,y, *,,~\.?
Set 1/0
Saving Standby Modes
..
!
29 ]PB7 28 ]BO 27 ]Bl 26 ]82 25 ] B3 24 ]84 23 ] B5
RoHS-compliant and/or Pb- free versions of Freescale products have the functionality and electrical characteristics of their non-RoHS-compliant and/or non-Pb- free counterparts. For further information, see http://www.freescale.com or contact your Freescale sales representative.
PAO[
A12[ 15 All[ 16
q
For information on Freescale.s Environmental Products program, go to http://www.freescale.com/epp.
A1O[ 17
A9 [
18
This document are subject
contains
information notice.
on a new product.
to change
without
For More Information On This Product, Specifications Goand information herein to: www.freescale.comMOTOROLA
INC.,
1982
ADl~R:
--
Freescale Semiconductor, Inc.
q
`,
Freescale Semiconductor, Inc...
Data Bus
Address Bus
Address Data
Strobe (@Z)
Strobe
Read/Wtite
For More Information On This Product, Go to: www.freescale.com
rucls Inc,
Freescale Semiconductor, Inc.
DC ELECTRICAL
CHARACTERISTICS
@ 3.0 V (VDD=3.O Vdc, VSS =0, TA= TL to TH, unless otherwise noted) Charactetiatica Symbol
vOL vOH
pS)
"!$,?<<
Min
VDD:O,,
Ma&*~# **t
,, ,:1 .,"y: `" +i +$,,,<< v , -, ,.,,,,'.. \ .!),:.. mA PA PA v v v v v v v
Output Voltage (1Load< 10,0 vA)
Total Supply Current (CL=50 pF - No dc Loads, tcYc=5 Run (VIL=O.2 V, VIH=VDD- O.2 V) Wait (Test Conditions Stop (Test Conditions - See Note Below) - See Note Below)
~. ,,,., $:$+$.,' ,+,+ *.7.. ~,.
IDD IDD IDD
Va@&i$<
.
*:: .$.,,?$, ~, `~"$'" 1.3 $,$}~~ $ ~f *,, ~)~$ 200 -~~t:t,,, ,_}<:j 100 > X,*.,,$<
".?
Output High Voltage (lLoad=0.25 mA) A8-A12, BO-B7, DS, AS, R/~
~~y.,Y~., 2,7 2,7 -- - - 0.3 - - -- 0.5 \.:~y@~'""~ ..... $~,,J<.)K.,* , .,!..\? ,,-' ~ii~$ .< ; `~OL ~t,3~* -. ,:,,, .,. ~ ,* .,:~:y. S...i vlH `,8:,>. "~+';+. !, ~>f $%> i~ vlH .), + ,1*
Freescale Semiconductor, Inc...
(lLoad=O.l
mA) pAO-pA7, pBO-pB7
Output Low Voltage (lLoad=0.25 mA) A8-A12, BO-B7, PBO-PB7, DS, AS, R/~, PAO-PA7 Input High Voltage PAO-PA7, PBO-PB7, BO-B7 TIMER, ~Q, RESET
2,1 2,5 2,1 --
Oscl
Input Low Voltage (All Inputs) Frequency of Operation Crystal External Clock Input Current -- -- RESET, IRQ, TIMER, OSCI Hi-Z Output Leakage PAO-PA7, PBO-PB7, BO-B7 Capacitance
~ \\+. ,,~1 . , .,::$ f!:l:,>,,
~?..~$' .' ..*.;. \i,y .:q.,, :,* $.~.,ft!~ ~~, ,+.,. ~, `:, ., *. x),. .},r *$ ..f$ `~~:i,. ..$iJ\... , t\.... t{,~. t;. ,rt, * ,>., ~1:,
VIH
vlL
fosc fosc Iin ITSL
- dc --
1.0 1.0 *I *10
MHz MHz
..,, ,.,$,,., !$. ,,\kp, .,~,, $ ~j>> `~ 1 a$i~?+ ,,,y,, ~ ,<\\, , ,+1 .,:.'., ~
PA PA
-
NOTE: Test conditions for Quiew~~~&ent
*.. "i
values are:
Port A and B prog@m@d as inputs. PBO-PB7, and BO-B7. vIL=O.2 V fo$:~~%~?, -- -- vlH=vDQ-&~~~,~Or RESET, IRQ, and TIMER OSC1 in~~~,js a $~uarewave from VSS +0,2 V to VDD - 0,2 V, OSC2 ~'h~~~.~ad (including tester) is 35 pF maximum, `~ 4,,, W~~~r@e~DD is affected linearly by this capacitance. ;~ i.:ih, ~., ,
.0
MOTOROLA
For More Information On This Product, Go to: www.freescale.com
Semiconductor Products Inc.
Freescale Semiconductor, Inc.
q
Freescale Semiconductor, Inc...
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
q
TABLE 1 - CONTROL TIMING (VSS= O, TA=TL VDD=3.O V fo~c = 1 MHz Characteristics 1/0 Port Timing - Input Setup Time (Figure 3) Input Hold Time (Figure 3) Output Delay Time (Figure 3) Interrupt Setup Time (Figure 6) Crystal Oscillator Startup Time (Figure 5) Wait Recovery Startup Time (Hgure 71 Required Interrupt Release (Figure 6) Timar Pulse Width (Figure 7) Reset Pulse Width (Figure 5) Timer Period (Figure 7) Interrupt Pulse Width Low (Figure 16) Interrupt Pulse Period "(Figure 16) Oscillator Cycle Petiod [1/5 of tcyc) OSCI Pulse Width High Symbol tpVASL tASLpX tAS LpV tlLASL toxov tlVASH tDSLIH tTH, tTL tR L tT LTL tlLIH tlLIL tOLOL to ~ tOL 0.5 5.5 1.0 1.0 * I , - Min 5m lm - 2 - - - Typ - - - - 30 - 30 Max - - o -- 300 10 3m to TH) VDD=5.O Min 250 100 -- V + 10%
I
fo~c = 5.0 MHz Tvp - --
.!,. A),
Stop Recovery Startup Time (Crystal Oscillator) (Figure 8) tlLASH
l<: ,<. -- ,...`1Ii?'&\ "~~ `" ~: ,.,+J.. ,.*,* ; .,./' 0,4 --,3?:;,. ~,,~. ~y~y: .: - - ,, `8" 100 \?.$ . ..,&,,,! ,, - ,,, 2 ,.>, 1~ ~ --ns fls ms ps ms
Freescale Semiconductor, Inc...
I
-
.<,,J
,,M'>ia.a+ I
.,,. ,...
-
I
-
I
tr,,fl "r#s tcyc tcyc tcyc ns ns ns
I
-
~$li$ 1,0 ,,*:*;>.,:
1.0 %
--!.:$,?,, ,,.,\>N,;5 ~:,,.:!
-
- -
-
- --
-- .s.%!,,s ,., =$s ~:?: _ {t;. ..~\ :+. ,, <., ,F< -- ...
1000
350 ,#b*
`" .?:> "'*' -
kti<. ~ - -- -
200
75 75
-
- -
--
- --
OSCI Pulse Width Low
3gg:''~'?i** ,. :..,
q
CMOS Equivalent
1
`estpoint 1
C=50 pF, PAO-PA7, PBO-PB7 = 130 pF, A8-A12, BO-B7, DS, with VDD=5 V + 10%
q
MOTOROLA
@
For More Information On This Product, 5 Go to: www.freescale.com
Semiconductor Products inc.
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
For More Information On This Product, Go to: www.freescale.com
q
Freescale Semiconductor, Inc...
A8-AI 1
q q
I
q
Freescale Semiconductor, Inc...
q q
J
q
q
Freescale Semiconductor, Inc...
Internal/External Clock TCRb7
~tTL
#
tTH
~ ,',.
AS n DS
n
Int Routine Starting Addr x h~ / SP SP-11 5P-2 X PCH SP-3 x A SP-4 cc
New PCti /~ New
Unmux A8-A12 Address Bus
Mux BO-B7
IF F6
Address/Data
Bus
xx
x b///////;////////////////N x PCL
A
Addr+
1
x
F7
lF
k
x./ XG
x XK
RO tine
PCL 1st Op Code Int
q
Freescale Semiconductor, Inc...
q
Freescale Semiconductor, Inc.
FUNCTIONAL VDD AND Vss PIN DESCRIPTION BO-B7 (ADDRESS/DATA VDD and VSS provide power to the chip. VDD provides power and VSS is ground. ~Q (MASKABLE INTERRUPT REQUEST)
BUS)
o
IRQ is both a level-sensitive and edge-sensitive input which can be used to request an interrupt sequence. The M PU completes the current instruction before it responds to the request, If IRQ is low and the interrupt mask bit (1bit) in the condition code register is clear, the MPU begins an interrupt sequence at the end of the current instruction, The interrupt circuit recognizes both a "wire ORed" level as well as pulses on the IRQ line (see Interrupt section for more details). IRQ requires an external resistor to VDD for "wire OR" operation. RESET
The BO-B7 bidirectional lines constitute the lower order addresses and data. These lines are multiplexed, with address present at address strobe time and data present at data strobe time, When in the data mode, these lines are bidirectional, transferring data to and from memory and peripheral devices as indicated by the R/~pin. As outputs in either the data or address modes, these lines are capable of driving one standard TTL load and 130 pF,
.! ,. A),,),, .:$Y:,.,k., ... .,,i~ > ,...':t.:.,)i,' The MC146805E2 provides for two types o~~$~!~qtor inputs - crystal circuit or external clock. T~$~$$bscillator pins are used to interface to a crystal CLFmIN+aSshown in $t~,,,!*\.\ ,., ~sp Figure 5. If an external clock is used, it~B%t@ connected to OSCI. The input at these pins is div~@{~five to form the cycle rate seen on the AS and D~:~f~.me frequency range is specified by fosc. The OS~l `?~,,,@~sransitions relationt ships are provided in FigU{~~~ fot system designs using oscillators slower than 5 ~~~!?$$ ,.~,~.~ ,-1, `,,..,:..*:: ,

Oscl,
0SC2
Freescale Semiconductor, Inc...
The RESET input is not required for start-up but can be used to reset the MPU internal state and provide an orderly software start-up procedure. Refer to the Reset section for a detailed description. TIMER The TIMER input is used for clocking the on-chip timer, Refer to Timer section for a detailed description. AS (ADDRESS STROBE)
0
Address strobe (AS) is an output strobe used to indicate ::!*"!+w$$~ the presence of an address on the 8-bit multiplexed bus. The EXTERNAL CLOCK - An external clock should be apAS line is used to demultiplex the eight least significant ad- `t$~.~~$: ~lied to the OSCI input with the 0SC2 input not connected, ,. dress bits from the data bus, A latch controlled by address "~~ as shown in Figure 10. strobe should capture addresses on the negative edge,.+Thi@$' output is capable of driving one standard TTL load 4'&I130 LI (LOAD INSTRUCTION) ,$t,i,;, .Ki?:'~ %,$,\: 1,,.*,,., DS (DATA STROBE) .1,3 . $V.t, !},,,. This output is used to transfer data t@:~#$&& a peripheral or memory. DS occurs anytime the M~$U'@8s a data read or write. DS also occurs when the ~~~ ,{b'~k a data transfer to or from the MPU internal mw@.W,t%efer to Table 2 and b Figure 4 for timing charact6ri$J::$This output is capablef driving one standard T~&k~&and 130 pF. DS is a continuous signal at fosc,k+ 5~,#n the MPU is not in the WAIT or STOP state. S@&'@bus cycles are redundant reads of ~:,$:,il~ ` <. >y~L,,,:@$~
This output is used to indicate tha~ a fetch of the next opcode is in progress. LI remains low during an external or timer interrupt. The LI output is used only for certain debugging and test systems. For normal operations this pin is not connected. The LI output is capable of driving two standard LSTTL loads and 50 pF. This signal overlaps data strobe,
PAO-PA7 These eight pins constitute input/output port A. Each line is individually programmed to be either an input or output under software control via its data direction register as shown in Figure Ii(b). An 1/0 pin is programmed as an output when the corresponding DDR bit is set to a "l", and as an input when it is set to a "O'. In the output mode the bits are latched and appear on the corresponding output pins. An M PU read of the port bits programmed as outputs reflects the last value written to that location, When programmed as an input, the input data Mt(s) are not latched. An MPU read of the port bits programmed as inputs reflects the current status of the corresponding input pins. The 1/0 port timing is shown in Figure 3, See typical 1/0 port circuitry in Figure 11. During a power-on reset or external reset, all lines are configured as inputs (zero in data direction register). The output port register is not initialized by reset. The TTL compatible three-state output buffers are capable of driving one standard TTL load and 50 pF. The DDR is a re~d/write register.
q
The A8-A12 output lines constitute the higher order nonmultiplexed addresses. Each output line is capable of driving one standard TTL load and 130 pF.
--
M070ROLA Semiconductor Products Inc. For More Information On This Product,
@
Go to: www.freescale.com 11
.. ,,,., .. ,, ., ,,. ,
.l .
,,. .
Freescale Semiconductor, Inc. FIGURE"9 -.OSCI TO BUS TRANSITIONS' ~`. .
,, .
,,.j,.~:,,
..."
,,,
.
,'
L'.,
,-,
..-.
,.
:,
,,
.,.
.,.
.,
,'-,..,, ,,, ,
~~
,,.,
,, :,:
,., . ,,"" ,, ..,:~., ,,, ,,. ,,. ,. ., ,. ,. ," ,,, ,,, ,.,'
,. 7,
:,
,,. "-
, .:
, ,:
:
,,
,.
.,
0
,,
,!
. :,, ,., .,. . -,. ."., ... r.,, ., ,,. , .,
,:
,,
..,: .,.
Freescale Semiconductor, Inc...
,, ,, ,. .,
:,
'., ,,.
:,,
,, ! .:
,,, ,,,, ,,
-
........ . .,-,' .,,
. .,
,.
,' ,, ,,,
`, BO-B7
q,', ,, ,., .,
`:'
. .. ., .'.., ,, .,. Oscl : ,,,,r.y%ii,~f - 39g ~iq;:, ,, ... -' .
,, :,, ;,, ,,
.,, . ,,
.
-., ,,
The inter~al `memory spade is located within the first 128 " bytes of ,rnemory (first half of page zero) and is comprised of the "1/0 port locations, flmer locations, and 112 bytes of RAM. The MPU can read from or write to anj of,these loca~ ,tions. "A p~ogra,m write to on-chip locations is repeated on the external bus to permit off-chip"'memory to duplicate the content of on-chip me,mory. Program reads to on-chip ioca` tions also appear on theextern"al bus, but the MPU accepts ~~ data only from the addressed on-chip location, Any read
data appearing `on the''input bus. is ignored. The stack pointer is. used' to" address data stored on the stack. Data is stored on the stack during interrupts and subroutine calls. At power-up, the stack pointer is set to "$O07F and it ii' decremented as data is pushed onto the
,J ,., ...,
,
,.,
stack. When data is removed from the stack, the stack ., pointar is incremented. A maximum of W bytes of RAM is
,,,
;,
.: ~.,' `:},:;',
,' .',
available
for stack usage, Since most programs
use only a
`MEMOR~'ADDRESSING,
,small part of the allotted stack locations for interrupts and/or
; ,,subrouti,ne stacking purposes,' the unused bytes are usable
" The M CI%805E2 is `capable of'addressing 8192 bytes of' rn,amory and 1/0 registers, The address s"pace:is di~ded into internal memory space `and' external' memory: spacej as!"
shown in Figure 12. ,' ,, ,, ,' :,, ~~ q:. :., .";., , ,,. ,.; `~~~~~~~~ ~~ For ~~ ,,., .', ,. .,-. .. :..,' ,,. , . >, ; ..
for program data storage. ~" All memory locations above location $007F:are part of the
externalmemory map. In addition, ten'locations in the 1/0 portion of the lower 128 bytes of memory space, as shown in
q
,, .,
,,
`,'.
Semiconductor products jncn: ,'...'.,..:, ,. ,: ... .!:. More Information ,,, This Product, ,, .. . ,',-,:~,.,::.:7 ,12j' On ,,.,., ,:.1. ,,, :.'.'!-:, .,,,,, ....... .... ,,, ,.. ~.~ -,, -,.,,,.-Go to: www.freescale.com -'
Freescale Semiconductor, Inc.
FIGURE 11 - TYPICAL PORT 1/0 CIRCUITRY
q
(a)
(~ I
I Data Direction Register Bit I
T
I
1
I
1
Freescale Semiconductor, Inc...
7
Data Direction Register DDA7
6 DDA6
5 DDA5
4 DDA4
3 DDA3
~+~:$$;::"~+ DAI
O DDAO $0004
1,1
Port .A Register
,{y {$: .. s,i.., >*.
$0000 ! t
q
PB7
PB6
PB5
PB4
PB3
PB2
PBI
PBO
TABLE 3 - l/O PIN FUNCTIONS
T
R/~
DDR
l/O Pin Functions The 1/0 pin is in input mode. Data is written into the output data latch. Data is written into the output data latch and output to the 1/0 pin. The state of the 1/0 pin is read. The 1/0 pin is in an output mode, The output data latch is read.
o o
1
0 1 0
1
I q
1
MOTOROLA
@
For More Information On This Product, 13 Go to: www.freescale.com
Semiconductor Products Inc.
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
q
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
FIGURE 13 - PROGRAMMING MODEL
q
12 I 12
7
0 A
Accumulator
7
0 x o Pc
6 Index Register
0
0
00
0
0
01 cc INZC h
Freescale Semiconductor, Inc...
stack#~;$s?],$ollowed
by PCH, etc. Pulling from the stack is in
`The stack pointer is a 13-bit r~&~,{3~~ontaining the -address of the next free location on~he ,fack. When accessing memory, the seven most sig@%~$<s are permanently set to 00~001. They are app~n~~d.~k the six least significant register bits to produce ~,,,a~ress within the range of $O07F to $0040, The stack ~fea bf&R'AM is used to store the return address on subrou&@ealls ~.. and the machine state during in,,~,..)'.,,v~, terrupts. Durin~%@~t&@b) or power-on reset, and during a "reset stack ~~t~.' instruction, the stack pointer is set to its upper li,,m~~W7F). Nested interrupts and/or subroutines may u~~,,.ti~~ts~~ (decimal) locations, beyond which the ,r ,! stack &oin@t'r'wraps around" and points :{ th:@~y~w.$&sing the previously stored ,:uB~@&*$fie call occupies two to its upper limit, information, A
carry occurs between bits 3 and 4 of the ALU duting an ADD or ADC instruction. The H bit is useful in binarv coded decimal addition subroutines. INTERRUPT MASK BIT (1) - When the I bit is set, both the external interrupt and the timer interrupt are disabled. Clearing this bit enables the above interrupts, If an interrupt occurs while the I bit is set, the interrupt is latched and will be processed when the I bit is next cleared.
NEGATIVE BIT (N) - When set, this bit indicates that the result of the last arithmetic, logical, or data manipulation was negative (bit 7 in the result is a logical one). ZERO BIT (Z) - When of the last arithmetic, CARRY set, this bit indicates that the result was zero,
RAM bvtes on the stack, while
.,.. .;,,
CONDITION CODE REGISTER (CC)
logical,
or data manipulation
BIT (C) - The C bit is set when duting
a carry or a borinstruction,
row out of the ALU occurs
an arithmetic
The condition code register is a 5-bit register in which each bit is used to indicate the results of the instruction just executed. These bits can be individually tested by a program and specific action taken as a result of their state. Each of the five bits is explained below, HALF CARRY BIT (H) - The H bit is set to a one when a
The C bit is also modified during bit test, shift,. rotate, and branch types of instruction, RESETS
The MC146805E2 has two reset modes: an active low external reset pin (R ES ET) and a power-on reset function; refer to Figure 5,
m
MOTOROLA
For More Information On This Product, Go to: www.freescale.com
Semiconductor Producfs Inc.
,.-~ ,,
-----.,,
.,. , ,. ,"'.:
.,. :.:,..~.,,:,, ,,, !,,
., -;,,,., ,:!...
Freescale Semiconductor, Inc.
,.
,, ,,
~
.! !,,:,.' ,,
.!,, ,, '.,,.:
.,,,,,~~.,,,--
.;,~-.."~.
..~..,!
..
.
.
. ,,
(piN'#l)
"`, "':,, ,:,,, .:
,. ...,
The RESET input pin is used to re: en orderly' s'oftware start-up proc~ external reset mode, the RESET pin must sta~:low fc mum of one tRL. ,Thl trigger to improve it: :.
Freescale Semiconductor, Inc...
then the
q
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
q
FIGURE 15 - RESET AND INTERRUPT PROCESSING FLOWCHART
I
w
Freescale Semiconductor, Inc...
07F+S P O+DDRS CLR l~Q Logic FF+Timer 7F;~Ts&ler ~
e
Set I Bit ?
Clear
Put lFFE on Address Bus
ti
Load PC From: SWI: 1FFC/1 FFD ~: lFFA/1 FFB TIMER: lFF8/1 FF9 rimer Wait: lFF6/l FF71
T
w
q
MOTOROLA
For More Information On This Product, 17 Go to: www.freescale.com
Semiconductor Products Inc.
Freescale Semiconductor, Inc.
q
1
Freescale Semiconductor, Inc...
q
1
q
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
The multiplexed address/data bus goes to the data input state (as shown in Figure 8). The high order address lines remain at the address of the next instruction, The MPU remains in the STOP mode until an external interrupt or reset occurs, During quests the STOP mode, to remove timer control any pending timer register timer (TCR) bits 6 interrupt reExternal and 7 are altered which is allowed to count in a normal sequence, The R/~ line goes to a high state, the multiplexed address/data bus goes to the data input state, and the DS and AS lines go to the low state (as shown in Figure 7). The high order address lines remain at the address of the next instruction. The MPU remains in this state until an external interrupt, timer interrupt, or a reset occurs, During the WAIT mode, the I bit in the condi~o~+,code register is cleared to enable interrupts. All oth~{~'rws?~rs, memory, may mode. FIGURE 17 - STOP FUNCTION FLOWCHART time, and 1/0 lines remain to allow interrupt If an external the external in their last st~~.t%~'timer exit ~b@&IW'e WAIT the same if the timer tb~n, be enabled a petiodic
q
and to disable
any further
interrupts,
interrupts are enabled in the condition code other registers and memory remain unaltered, remain unchanged.
register, All All 1/O lines
and a timer interru,pt~~-~at is serviced~r~t;
stop
interrupt request is not cleared,::~:~t,}~~,~j~xternal interrupt routine, the normal timer interrupt~$oo}ltie timer WAIT interrupt) is serviced mode. since the M~ ,q>y:; ,<;$MER Is:#o longer in the WAIT
Freescale Semiconductor, Inc...
7
I
i
Stop Oscillator And All Clocks TCR Bit 7-O TCR Bit 6-1 Clear I Mask
I
The M PU timer co~~*,&& single 8-bit software programmable counter wf~:~blt software selectable prescaler. Figure 19 sho~~,,~ b~&k diagram of the timer. The counter may be pre~~:~~der program control and decrements towards @i~When the counter decrements to zero, the timer ~~t~u~ request bit, i.e., bit 7 of the timer control regis@gF/~C~), is set. Then if the timer interrupt is not
I
I
#'
~@ke&X~.e., ,,~o~~,,register Nrupt. After
bit 6 of the TCR and the I bit in the condition are both cleared, the processor receives an in-
completion of the current instruction,
the pro-
e
stack, and then fetches the timer interrupt vector from locations $1FF8 and $1 FF9 in order to begin servicing the interrupt, If the MPU were interrupted vector fetch would while in the WAIT mode, the interrupt be from locations $1 FF6 and
$IFF7. The counter continues to count after it reaches zero, allowing the software to determine the number of internal or external input clocks since the timer interrupt request bit was set. The counter may be read at any time by the processor without disturbing the count. The content of the counter becomes stable prior to the read portion of a cycle and does not change during the read. The timer interrupt request bit remains set until cleared by the software. If a read occurs before the timer interrupt is serviced, the interrupt is lost. TCR7 may also be used as a scanned status bit in a noninterrupt mode of operation (TCR6= 1). The prescaler is a 7-bit divider which is used to extend the maximum length of the timer. Bit O, bit 1, and bit 2 of the TCR are programmed to choose the appropriate prescaler output which is used as the counter input. The processor cannot write into or read from the prescaler; however, its contents are cleared to all "OS" by the write operation into TCR when bit 3 of the written data equals 1, which allows for truncation-free counting. The timer input can be configured for three different operating modes, plus a disable mode, depending on the value written to the TCR4, TCR5 control bits. Refer to the Timer TIMER Control INPUT Register MODE section.
Turn on Oscillator Wait for Time Delay to Stabilize
Fetch External Interrupt or Reset Vector
%
WAIT The WAIT instruction places the MC146805E2 in a low power consumption mode, but the WAIT mode consumes
q
somewhat more power than the STOP mode; refer to Table 1. In the WAIT function, the internal clock is disabled from all internal 18, Thus, circuitry all internal except the timer circuit; refer to Figure except the timer processing is halted
1
to a "U', the inand the external mode can be
If TCR4 and TCR5 are both programmed put to the timer is from an internal clock TIMER input is disabled. The internal
clock
m
M070ROLA
For More Information On This Product, 19 Go to: www.freescale.com
Semiconductor
Products
Inc.
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
q
External Input
FIGURE19 - TIMER BLOCK DIAGRAM Selected by TCR4, TCR5 Selected by TCRO, #
w
T
Freescale Semiconductor, Inc...
Internal Clock [ Cleared by TCR3
.$4 .~:.>$, >
;,.. :.
TIMER CONTROL REGISTER (TCR) 7654 TCR7 TCR6 TCR5 TCR4 321 TCR3 TCR2 TCRI
,$'.\JeR5 .:,. ~:,':,. ""' .'>$(.!i<\; o ~, .,.*) .. 0 t:."t:-.~,,+?, o to-.\,..?:* TCRO "'~; ,.*': 1 ` a1
TCR4 0 1 0 1 Internal clock (AS) to timer AND of internal clock (AS) and TIMER pin to timer Inputs to timer disabled TIMER pin to timer
1 - Set whenever the counter dqc~~~~ `"$:,,* \ der program control. ,:~t: ,,/$ym f* O - Cleared on external rese$:lp~~er-on struction, or progra~''w~bl
to zero, or unreset, STOP in-
TCR3 - Timer Prescaler Reset bit: wtiting a "l" to this bit resets the prescaler to zero. A read of this location always indicates a "O" (unaffected by RESET).
TCR2, TCRI, TCRO- Prescaler address bits: decoded to select one of eight outputs of the prescaler (unaffected by RESET).
TCR2 o
TCR1 0
TCRO I Result +1 0
0
o 0 1 1 1 1 " 1 - Select external clock source. O - Select internal clock source (AS).
0
1 1 0 0 1 1
1
0 1 0 1 0 i
+2 +4 +8 -16 +32 -64 +128
INSTRUCTION
SET
q
TCR4 - External enable bit: control bit used to enable the external TIMER pin (unaffected by RESET). 1 - Enable external TIMER pin. O - Disable external TIMER pin.
The MPU has a set of 61 basic instructions. They can be divided into five different types: register/memory, readmodify-write, branch, bit manipulation, and control. The following paragraphs briefly explain each type. All the instructions within a given type are presented in individual tables.
m
MOTOROLA
For More Information On This Product, 21 Go to: www.freescale.com
Semiconductor
Products
Inc.
Freescale Semiconductor, Inc.
5es of the processor are sed to indicate "contents is replace-d by, " and a colon indi.
q
all the information-necessary ,,
:.r6aiSteror acct)mulator,
to ex~the opcode. Operations
and no
Freescale Semiconductor, Inc...
RAM and 1/0 registers
chip ROM, Direct addressing is ef-
1)
addrassof in the"two bytes following the opextended addressing modes are urnents anywhere in memory with ction. When using the Motorola ]ot specify whether an instruction ?d addressing, The assembler
nest efficient addressing mode,
ing mode, theeffective
(PC+2);PC+PC+3
1); Address Bus Low-(PC + 2)
;t :addressing mode, the effective is contained in the 8-bit index is addressing mode can access the first 256 instructions are only one byte move a pointer through a table or erenced RAM or 1/0 location.
)y,adding th,e contents of the byte ]t of the index register; therefore, nywhere, within the lowest 511 mple, thi,s mode of addressing is th element in an n element table. vtes. The contents of the index ntents of (PC+I) is an le bvte "offset indexing permits in either RAM or ROM,
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
INDEXED, 16-BIT OFFSET opcode. The bit set and clear instructions occupy two bytes, one for the opcode (including the bit number) and the second to address the byte which contains the bit of interest. EA=(PC+I); PC~PC+2 Address Bus High YO; Address Bus Low+(PC BIT TEST AND BRANCH
`.!$>,
q
In the indexed, 16-bit offset addressing mode the effective address is the sum of the contents of the unsiged 8-bit index register and the two unsigned bytes following the opcode. This addressing mode can be used in a manner similar to indexed 8-bit offset, except that this three byte instruction allows tables to be anywhere in memory (e.g., jump tables in ROM). As with direct and extended, the M6805 assembler determines the most efficient form of indexed offset - 8 or 16 bit. The content of the index register is not changed. EA=X+[(PC+ I):(PC+2)]; PC+PC+3 Address Bus High-( PC+ 1)+ K Address Bus Low+K+ (PC+2) where: K = The carry from the addition of X + (PC + 2) RELATIVE
+ 1)
Freescale Semiconductor, Inc...
Relative addressing is used only in branch instructions. In relative addressing the content of the 8-bit signed byte following the opcode (the offset) is added to the PC if and only if the branch condition is true, Otherwise, control proceeds to the next instruction. The span of relative addressing is limited to the range of - 126 to + 129 bytes from the branch instruction opcode location, The Motorola assembler calculates the proper offset and checks to see if it is within the span of the branch.
Bit test and branch is a combination of direct ad~$$$~g, bit addressing, and relative addressing. The bit ,@d~% and condition (set or clear) to be tested are part ~f,%$<~pcode. The address of the byte to be tested is in tQ@:~~~&byte immediately following the opcode byte,~ .4. \\*f\i... \
q
CONFIGURATION . f":$~sTEM Figu~~,*~firough 25 show in general terms how the M C~468~52 bus structure may be utilized. Specified interEA= PC+2+ (PC+ 1); PC~EA if branch is taken; fat~{~etails vary with the various peripheral and memory otherwise, PC+ PC+ 2 #~&c~k emnloved. :%~t,i~$.$able11 pro~ides a detailed description of the information BIT SET/CLEAR ~t~~'!~$,present on the bus, read/write (R/~) pin and the load inDirect addressing and bit addressing are combined in in`":S struction (Ll) pin during each cycle for each instruction. structions which set and clear individual memory and MO Y> This information is useful in comoaring actual with expetted results during debug of both softw~re and hardware as the control,, program is executed. The information is categorized in groups according to addressing mode and number of cycles per instruction.
q
MOTOROLA Semiconductor Products Inc, For More Information On This Product,
@
Go to: www.freescale.com 23
Freescale Semiconductor, Inc...
Freescale Semiconductor, Inc.
q
Branch Always Branch Never
TABLE6-
BRANCH INSTRUCTIONS Relative Addressing Mode # Cycles 3 3 3 3 3 3 3 3 3 "!$,?<< skr.\:27,, ,* `~,;:": ,?*., ,,$''" ~.,, .;3>::> ~t.,.?: ~i:\, ~<$.it ,,l.,.,~,i,.,. ., ,y..,.1. l!? ., ,.,,.
Function
Mnemonic BRA BRN BHI BLS BCC (BHS) BCS (B LO) BNE BEQ BHCC BHCS
I
Op Code 20 21 22 23 24 24 25 25 26 27 28 29
t
# Bytes 2 2 2 2 2 2 2 2 2 2
Branch IFF Higher Branch IFF Lower or Same Branch IFF CarrV Clear (Branch IFF Higher or Same) Branch lFFCarrV Set (Branch IFF Lower) Branch lFF Not Equal Branch IFF Equal Branch lFF Half CarrV Clear
:;~:*'&""" ,g ~,, <$ . .$, ~, " y,
Freescale Semiconductor, Inc...
Branch lFF Half CarrV Set Branch IFF Plus Branch lFF Minus
2 ", k~%$>, 2 +$ci'y<;& ` ~:w~ `;@ 3 I `::$2:Y*I 3 3 3 3 3 6 I
BPL BMI
2A 2B
3
~.{. . ,,:$:
,..~k.;,
Function Branch IFF Bit nis Set Branch IFF Bit n is Clear Set Bit n Clear Bit n qR~3:&'rh = 0.. .7) +,,B'%$F%n[n= O...7) "'" ,l:t~ %@~R n (n= O...7) ,.,:,1 ,{, *, ~.t. `*?t . ~$% Mne~'~~J$k$ Bit Set/Clear Op Code - - 10+2*n ll+2*n # Bytes - -- 2. 2
Addressing Modes Bit Test and Branch # CVcles - -- 5 5 Op Code 2. n 01+2*n -- -- # Bytes 3 3 -- -- # Cvcles 5 5 -- --
Function Transfer A to X Transfer X to A Set CarrV Bit Clear CarrV Bit Set Interrupt Mask Bit Clear Interrupt Mask Bit Software Interruot
Mnemonic TAX TXA SEC CLC SEI CLI Swl
Op Code 97 9F 99 9a 9B 9A a3
# Bytes 1 1 1 1 1 1 1
# Cycles 2 2 2 2 2 2 10
~ Wait
WAIT
aF
1
2
@
MOTOROLA Semiconductor Products Inc. For More Information On This Product,
25 Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
For More Information On This Product, Go to: www.freescale.com
q
TABLE 10 - MCI=5 CMOS INSTRUCTION SET OPCODE MAP
Bit Manipulation BTB BSC Hi LOW 0 1 0321 2 0310 @ 3 ml 1 m BR S ET05 BTB BRCLR05 aTB BRSET15 BTB ml BSETO 5 BSC BCLRO 5 BSC 5 BSET1 2 asc 5 BCLR1 BSC 2 5 BSET2 2 BS: 2 2 BCLR2 BSC 5 B S ET3 W1O
3
Branch REL
Read-Modify-Wtite
Control 1X1 0110 1;
0111
DIR
ml 1 5 NEG
INH 4 01w 3 NEG DIR 1 INH 1
l~H 0101 3 NEG INH 2
INH 8
lm
INH 9
lml
IMM 1$0 2 2
DIR B
1011
,.>S%&T $>' F ./::. .$ ,,?
.+ !s,, $~m
I&
1101 5
lx 1
1170 4
IF Hi
1111
6 NEG 1X1 1
5
9 RTI 1 RTS INH 6 INH
BRA 2 BRN 2 BHI
2
NEG
lx
REL 3 REL 3 REL 3 BLS
2
Freescale Semiconductor, Inc...
3
1
3
SUB IMM 2 2 CMP `?#&,; lhlM,. ~!!a . 2 ,*`"'~$ 3 SB &;; i :$ ~Y%c , ,J~~> DIR 2
":\. >" 4 SUB `$?* ,$S U B .&, ~, ~~, \+~ EXT : cMp SBC 3 CPX 3 AND 3 BIT 3 LDA EXT 4 EXT 4 EXT 4 EXT 4 4 EXT 4
.. .
3 SUB o lx 3 CMP lx SBC 1 ml 2 0310 3 0311 4 Olw 5 0101 1 I
SUB 3 CMP 3 SBC 3 CPX 3 AND 3 BIT 3 LDA 1X2 5 2 1X2 5 2 1X2 5 2 1X2 5 2 1X2 5 2 1X2 5 2
SUB 1X1 4 CMP 1X1
4
SBC 1X1 4 CPX 1X1 4 AND 1X1 4 BIT 1 4 LDA 1 1 1 1
lx CPX lx 3 AND lx 3 BIT lx 3 LDA
5 COM COMA DIR 5 LSR DTR 1 LSRA 1 2 2
3 INH 3 INH
3
BRCLR15 BTa B R S ET25 BTB
2 BCC 2 BCS 2 BNE
REL 3 REL 3 REL 3
o 0 0
~ a ! Mm +m 3 -. 0 3 $
s
4 Olw
3
3 COMX INH 3 LSRX 1 INH 1
6 COM 2 LSR 2 1X1 1 1X1 6 1 LS R COM
5 Swl lx 5 lx 1
10 INH
5 0101
3
BRCLR25 BTB B R S ET35
5 ROR RORA
3 RORX 1
3 ROR
6
5
6 0110 0111 7
ROR
1
, fy;$; ~ Cpx 3 2 DIR \. ~ ,,$ 2 3 ~;$<+ ,',,, . AND DIR ":$>...,; `~Q;A N ~MM 2 ,,,if,,?:~, .~~tl ,>; 2 3 .\ ?,.>,, i, BIT BIT ,', fj;>\ $. MM 2 DIR 2 3 2 F." .." ~.,,,, *'E !.; ~~:b:, LDA LDA
:BRc~~ BR SET45 3 BTB BRCLR45 BTB 3 B R S ET55 BTB
:BcL~~: BSET45 BSC 2 2 BCLR45 BSC BSET55 BSC BCLR55 BSC BSET65 BSC BCLR65
: 2
`E~:: BHCC REL 3 BHCS REL 3 BPL REL 3 BMI REL 3 BMC REL 3 BMS REL 3 BIL
REL
: 2
`s~; LSL DIR
5
: `sR~; LSLA 1 INH
3
1 `sR~; LSLX 1 INH
3
: 2
`SR; LSL 1X1
6
1 `SR LSL 1
::
<:'?.
:TA~N; CLC I SEC 1 CLI 1 , SEI INH 2 RSP 1 NOP [NH 2 INH 2 INH 2 NH
2
2 2 2
`M: EOR IMM
2
: 2
`T{; EOR
DIR 3
:
3
8 1032
9
\>l `` tx. . 2:,. 4,. ~,:,.+<"?
>> `"
`TA EOR EXT
4
: 3
`T~: EOR
1X2
~
2
`TAT EOR
1X1
~ `TA ; EOR
1 lx
:: 8
lm
ROL 2 DEC 2 DIR 1 DIR 5 1
ROLA
INH
ROLX 1
INH 2
ROL 3
~ ~~~.?.::
5 ADC ADC 1X2 ORA 1X2 ADO 2 ORA 2 ADO 1X2 4 JMP 1X2 2 JMP 2 3
4 ADC 1X1 1 ORA 1X1 1 ADD 1X1 3 1X1 1 JMP 1
3 lx lx 9 1021 A 1010 8 1o11 c 1102 5
1031 A 1010
2
1X1 1
6
$%,
lx
3 DECA INH 1
2
2
B 1o11 c" llm
BRCLR55 3 aTa B R S ET65 BTB
2 2
2 2 2
5 INC 2 TST 2
DIR 1
3 INCA 1 TSTA INH INH 3
o
3
DIR 4
D@ lx I,:t`1 ,*~.~ . .\$.,, ~',::i>., ::& \:~\Y .$,:$,,:! 3 INC INCX ;?' (p~, 1 INH :! - ,. "%1 1 DECX INH OEC 2 TSTX$$: t:~,x&T 5 1X1 1 TST
ADC IMM 2 ORA' 2 IMM 2 ADD IMM 2
ADC 2 ORA 2 ADO 2 JMP 2 DIR 2 DIR 5 JSR DIR LDX 3 DIR 3 3 DIR 3
ADC ExT ORA EXT 4 ADO EXT 3 JMP 3 JSR 3 LDX EX; 3 EXT 3 3 3
5 lx 4 lx 2 STOP 1
lx 2
6 BSR 2 LDX REL 2 2
0 1101 E 1110 F
3
BRCLR65 BTB BR SET75
BTB
5 B S ET7 2 BSC BCLR75
2 BSC 2 2
3
` k; ~%,, `:> , w: , , ~'l:;.,t, ,:<=. "'kc' " .. ...'.., ...:~{.
1
1
INH
JSRIX; LOX
2
JSRIX; LDX
1 1
`SR LOX
:;
1:1
3 BIH
REL 2
5 CLR
DIR 1
g
-
BRCLR75
BTB
CLR A@+'
~g" WN; 2
!:,> ..,.! ,,~'$$}:/,.) ?., ~, ! \
1111
3
CLRIX:
1 CLR 1:
1 WA';:
1 `xl,:
2
`MM
:
STX:::
:
STC!
:
STX2
:
STX!
1 `Tx
:
:::
Abbreviations INH A
for Address
LEGEND
Inherent
Index Register
Accumulator Immediate Direct Extended `ne.:-
Opcode
in Hexadecimal
x
IMM DIR EXT
Opcode in Binary
1X2
Indexed,
2 Bfie
(16-Bit)
Offset
Freescale Semiconductor, Inc.
q
Freescale Semiconductor, Inc...
q
q
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
FIGURE 2 - CONNECTION TO M~OO PERIPHERALS 1 Address Decode
q
A8-A12
1
Chip Select ~ rs
Freescale Semiconductor, Inc...
NOTE:
q
)0-Q7 CMOS Non-Muxed ~o-A7 Memory
s
q
@
MOTOROLA Information On This Product, Semiconductor Producfs Inc. For More m Go to: www.freescale.com
.,,,,,.,. . :,.>.
.,
,$
,. ,,
,, ,. ....,. .. . . .. . . .. . . ,,. , ., ,
.,.",
., -.,
,
,,
,.
Freescale Semiconductor, Inc.
.,. ,,, ,,, .,. ,.
,,
,. :,, ,.
,,
:.,.,,,';
,, .,,
,., -,,,
,.,
?tiGtiRE.24-'C. NNECTION O ,, ..j!'~,, ~ ...''.'.. ,.. :..,,,,,
",'
,
,,
TO"sTATIC CMOS RAMS ..
,\
q
Freescale Semiconductor, Inc...
q
q
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
q
Address Mode Instructions
Inh-r-nt
TABLE 11 - SUMMARY Cycles Cycle #
OF CYCLE-BY-CYCLE
OPERATION R/w Pin LI Pin
Address Bus
Data Bus
. . .. . . 1
3. 2 3 Op Code Address Op Code Address + 1 Op Code Address + 1 1 1 1
LSR LSL ASR NEG CLR ROL COM ROR DEC INC TST
1 0 0 1 0
@ Code Next Instruction ~~levant Data #rrelevant Data Irrelevant Data New Op Code Op Code Op Code Next Instruction Return Address (LO Byte) Return Address (Hi Byte) Contents of Index Register Contents of Accumulator Contents of CC Register Address of Int. Routine (H1 Byte Address of Int. Routine (LO BytE Interrupt Routine First Opcode Op Code Op Code Next Instruction Irrelevant Data Irrelevant Data Irrelevant Data Irrelevant Data Irrelevant Data Irrelevant Data New Op Code
TAX CLC SEC STOP CLI SEl
RSP WAIT NOP TXA
2
1
2 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9
Op Code Address Op Code Address + 1 Op Code Address Op Code Address + 1 Stack Pointer Stack Pointer + 1 Stack Pointer + 2 New Op Code Address
1 1 1 1 "1 1 1 1 ,$<
Freescale Semiconductor, Inc...
RTS
6
I
Swl 10
10 1
2 3 4 5 6 7 8
Op Code Address .@~' Op Code Address + 1 `:., !t~,tt..+ ft,:t,,> ..kp,\Q Stack Pointer .}.>,:;:+}* Stack Pointer - 1 ,,*. $, `] 8 , /!,,8 o .,,. .:/, ? Stack Pointar - 2 *\,~,*ii,.,,>:.. Stack Pointer - 3 ..,$*, .. 0 \$,,/l,::$' Stack Pointer - 4 o Vector Address 1FFC (He~'P'''s$:yqJ 1 Vector Address 1FFD (fi[x)'k~ 1 Interrupt Routine StaF~&~Mress 1 *$$x{!, <;.. Op Code Address ~ ~$: 1
q
TI 9 nmediate
Op Code Address Op Code Address + 1
1 1
1
0
Op Code Operand Data
,,i\. ,,:. `*:*::. ~:. , :\., BSET n ..,. .~i ~i.a, ,,1 ! BCLR n ..'$.,..!.,, ` ..,!,W..., ,.,, .,',:}~ie. .,,.::,<.~ `...... "?\.,. Bit Test and, ~,@'ch- ~ .' t ~:i* ,,,$: .. ...t~.,'+;<:j,+;~ BRS&Y,@t:A,. B~C:&;$ ,~~y ";.::T&h,
,.;l$~
!*
`*' \
~!;ys"
,!
1
2 3 4 5 1 2 3 4
5
Op Code Address Op Code Address + 1 Address of Operand Address of Operand Address of Operand Op Code Address Op Code Address + 1 Address of Operand Op Code Address + 2 Op Code Address t 2
1 1 1 1
1
o
1 1 1 1 1
0 0 0 0
1
Op Code Address of Operand Operand Data Operand Data Manipulated Data Op Code Address of Operand Operand Data Brench Offset Branch Offset
5
0 0
.,i.' ,,,..
5
0 0
1 0 0
1
Relative BCC BHI BNE BEQ BCS BPL BHCC BLS BIL BMC BRN BHCS BIH BMI BMS BRA 1 2 3 1 2 3 4 5 6 Op Code Address Op Code Address + 1 Op Code Address + 1
I
3
1 1 1 1 1 1 1 o
I
Op Code Branch Offset Branch Offset Op Code Branch Offset Branch Offset First Subroutine Op Code Return Address (LO Byte) Return Address (Hl Byte)
q
BSR
6
Op Code Address OD Code Address + 1 Op Code Address + 1 Subroutine Starting Address Stack Pointer Stack Pointer - 1
1
1010 t
0 0 0 0
m
M070ROLA Information On This Product, Semjconducfor Producfs Inc. For More
Go to: www.freescale.com
Freescale Semiconductor, Inc.
1
q
Freescale Semiconductor, Inc...
1
:' 1 1
o" 0 0 0 0 `o
A~dress Address Address
`of Operand of Operand of Operand
(HI Byte) (LO Byte) (LO Bvte)
q
I
I
1
1 1
Address of Subroutine (H1 Byte: Address of Subroutine (LO Byte 1st Subroutine OD Code
1
I
0
0
! Op
Code Next
Instruction
11'
I Op Code Next Instruction
I
1 1'0
0
Op Code Next Instruction Op Code Next Instruction
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
TABLE
11 -
SUMMARY
OF CYCLE-BY-CYCLE
OPERATION
(CONTINUED)
.0
Indexed JMP ADC
Address Mode Instructions 8-Bit Offset
Cycles
Cvcle # I
Address
Bus
R/~ Pin
LI Pin
Data Bus
I
I
EOR CPX
1
3 2 3 1 2 3 4 1 2 3 4
Op Code Address Op Code Address Op Code Address +1 +1
1 1 1 1 1 1 1 1 +1 +1 +1 1 1 1
1
0 0
1
Op Code Address Op Code Address + 1 Op Code Address + 1 Index Register + Offset Op Code Address Op Code Address Op Code Address Op Code Address Index Register
0 0 0
1
0
,$~,:: yi:~{l
Freescale Semiconductor, Inc...
5 1 2 TST
+ Offset
o
1
,\ \
@*et Operand Data
Op Code Address Op Code Address Op Code Address Index Register Op Code Address Op Code Address Op Code Address Op Code Address t1 +1 +2 +1 +1
,,;$" Op Code Offset Offset Operand Data Instruction Op Code Next
,
5
3 4 5
+ Offset
LSL ASR CLR COM DEC
LSR NEG ROL ROR INC
1
z 6 2 3 4 5 6 1 2 3 4 5 6
1 `:$,pd<+~>v ">+?*, o ,,,t.Fti.J.,,, ~~ `~$i*<:,.ii,bt :. o ~~ **,)$ :.;l) ,.~{.~$ ...!,$~. o /< :,), 1 1 ,,t<.\$i<;$ .t:?t ~ :,, :\\? 1 0 ,.,,~th" ~~ ~.];,} 1 0
Op Code Offset Offset Current Operand Data Current Operand Data New ODerand Data Op Code Offset
0
JSR
6
1 1
0
0
0
Offset Ist Subroutine Return Return Address Address
Op Code LO Bvte HI Bvte
Indexed,
16-Bit
Offset
~i,
,!,*~
,s,
0
`.+.,O
0 0 1 0 0 0 1 0 0
0
1
~$$%~
Address
1
Op Code Offset Offset Offset Offset Offset Offset Operand (H1 BVte) (LO BVtel (LO Byte) (H1 Byte) (LO BVte) (LO Byte) Data
,~~,~bde Address b Code Address
+1
+2 +2 +1 +2 +2
1
1 1 1 1 1 1 1 1 1 1 1 1
`bpCode
Address
Op Code Address Op Code Address Op Code Address Op Code Address Index Register Op Code Address Op Code Address Op Code Address Op Code Address
Op Code
+ Offset +1 +2 +2 +2
5
6 1 2 3 4 5 6
Op Code Address Index Register Op Code Address Op Code Address Op Code Address Op Code Address
+ Offset +1 +2 +2
o
1 1 1 1 1
Index Register + Offset Stack Pointer Stack Pointer - 1
o 0
0 1 0 0 0 0 0 1 0 0 0 0 0 0
Op Code Offset (H1 BVte) Offset Offset (LO BVte) (LO BVte)
Offsat (LO Byte) Operand Data Op Code Offset Offset Offset Ist Return Return (H1 BVte) (LO BVte) (LO Bvtel Op Code (LO Byte) (HO BVte) Address Address
Subroutine
q
--
I
MOTOROLA
@
For More Information On This Product, 33 Go to: www.freescale.com
Semiconductor Products Inc.
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
O
For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc.
PACKAGE DIMENSIONS
NOTES: 1. DIMENSION~lS
DATUM.
Freescale Semiconductor, Inc...
q
a~ **AS'+ >,,: ,? ~,~ :+ `,, , .,, ,. ; f+, ~'. *). "+:~.'k~:(? f wgJF F ..Y .,, \,. ( ,$$3 `i?i, `~t:$.i, ,h,..~#'
/(\,Q, $,. . .\]\\:,, `} `, .~.,,
,?:::! ~(i,ti~,,, ,,.<, $~,* ,.. ., " ~:$:,, .r?p,i:\..,\t.,*,,
1. POSITIONAL TOLERANCE OF LEAOS (0), SHALL BE WITHIN 0.25 mm (O.O1OI AT MAXIMUM MATERIAL CONOITION, IN
2. OIMENSION 3. OIMENSION `ow;TE:':NEAND ~ c~ L ;FLAsH"
L TO CENTER OF LEADS B DOES NOT INCLUOE ~ F G H J K L
M N
!;
P SUFFIX
~~n
PLANE
Am-
pLAsTIc PAcKAGE CASE 711-01
`3 1.02 1.52 2.54 Bsc 1.65 I 2.16 0.20 I 0.3B 2.92 I 3.43 15.24 BSC w 150 0.51 I 1.02
i `i 0.040 0.060 0.100 BSC 0.065 I 0.085 0.00B I 0.015 0.115 I 0.135. 0,600 BSC ,50 00 0,0201 0.040
~ i. ~~it$. .):3,> .,4,, *;t+, ,e+,, `~i.$.,i,!i., .r> ,:,. `$~,:.
~,. ,~;,.. ,$::.;[
".:\~\ .~~>
>:;,,{ P a, 7FG ~
11
B J ~R~ ~~~
A
NOTES: 1. DIMENSIONS A& RARE DATUMS. 2, ~lS GAUGE PLANE, 3, POSITIONAL TOLERANCE FOR TERMINALS (0): 40 PLACES: ~@10.25(0,010] @l T lA@l R@ 4, DIMENSIONING ANOTOLERANCING PER ANSI Y14.5, 1973,
Z SUFFIX
~~D ~H
CHIP CARRIER CASE 761-01
`m
MILLIMETERS OIM MIN MAX A 11.94 12,57 s 11.05 11.30 C 1.60 2.OB o 0,33 0,69 F 1.07 1.47 G 1.02 BSC H 0,S4 1.19 N 1.27 1,79 R 11.94 12.57
INCHES MIN MAX 0,470 0.495 0.435 0.445 0.063 O.OS2 0.013 0,027 0.042 0.05S 0,040 GSC 0.033 0.047 0.050 0.070 0.470 0.495
q
.@
MOTOROLAInformation On This Product, Semiconductor Products For More
Go to:
35 www.freescale.com
Inc.
~,
"-~ -----:., -, ... ,., . ,.!;.,
.; :?
,:- ------- .: -.., .,
--.:-
.
:, .,.
..
..."
`.-
,.''.'".',, :
.; .-"-.
,. ---...
... ,,-?.,,. ,.,,,,,::
,":
,
,.. . . `
Freescale Semiconductor, Inc.
.. .:,
!,.
:
.-,
-,,
,.,
,.
... . . ,,'
Freescale Semiconductor, Inc...
,,, ,,, ,,
,
."
. .~ *:*+
.w$:,~~ " . .. . . . . . .
,.
.
,.-,
.,k,
.w
k,m,
VII%
.'.
~e~ "y8&~$4
.;-.;'$~;;:$ "'"' ` ,., :,, , .-,
:.,
`: M6805 ;
T
:,
.. A. FAMILY OF MICR'OC"OMPUTERS
A PARTICULAR' M6805" FAMILY VERSION , *Q+: >i@ ,'" .,'"';, i' : ` `%;r;;lAGE ~~k,v;~ie, ` .Iij MC~870~P3 :.. ` :,, . N:.$t > ~\,;?!$$,''&': *. .< ,.$=* ,,v,$:k~ 8, \* $s,}, b *" `~c146805G~ , ,- ~~ ` ,+.$>s..b~i,, ,,, .. .. ., ,. 7 ,' ,\:,*~> . ,.~~,....h. ., .:*., .?, -%,2> ,, \-,~h?iitli,+.w, MC6805P2P2,, ~>t\.\ +, ...= ,:{{, ,, ,,:
:.i ,, ,. ., .,, ,, .:' , .' .,. ,, ,,. ,,. ,,, ` `: . . :-
` AN EPROM VERSION ,' ,, .. ~ `A,CMOS M6805 FAMILY MEMBER AN EVALUATION
{PLASTIC .,, PACKAGE)
"',
.' "' ,.:.,
PROGRAM STORED IN
ROM
,,, ,, ,
Motorola reserves the rightto make changes.to any prod ucts,herein to improve ieliabilitv, function ordesign. Motorola does not assume anv Iiabilitvarising out of the application or useof anv product-or circuit described herein; neither doesit convevanv licenseunder.ts patentrights nor the rightsof others. i
,'.
,., ,-, .,-",..
.,, !,.
,, ., .,.
,,
`@"
MO~OROL'~":,Sernicdnductor Products Inc. ,,, ,- ...: ,,. :, ,.. ,;:! ,. 3501 ED BLUESTEINBLVD,, AUSTIN, TEXAS 78721 A .,, .,. ;,, ,,. For More Information On This Product,SUBSIDIARY `OF MOTOROLA
q
INC. --
.,
.:
A13322-3
PUINTED ,:,. ,-.
1"
"Si ..
2.82 . ,., .-,,,.: .
IMPERI?L .. . .. `,,
LITHD. . , ., ,. ;,.:.
;0329; :,,,,.-.; ---
Go to: www.freescale.com
, 18,000 ,.-., .,, ,, , . ..
RD1-850-R2


▲Up To Search▲   

 
Price & Availability of MC146805E2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X